#include<stdio.h>
#include<math.h>
int main()
{
	long long num,copynum;
	scanf("%lld",&num);
	int count=0;
	if(num==1)
	{
		printf("1=1");
		return 0;
	}
	printf("%lld = ",num);
	copynum=num;
	while(num!=0)
	{
		while(copynum%2!=1)
		{
			copynum/=2;
			count++;
		}
		num-=pow(2,count); 
		printf("%d",(int)pow(2,count));
		copynum=num;
		count=0;
		if(num!=0)
		{
			printf(" + ");
		}
	}	
}